package net.peihuan.community.service.impl;

import net.peihuan.community.dao.UserMapper;
import net.peihuan.community.entity.User;
import net.peihuan.community.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User show(int id) {
        return userMapper.findUserById(id);
    }
}
